import {ethers} from 'ethers';
const WAValidator = require('wallet-address-validator');

export function formatBytes32String(name) {
    return ethers.utils.formatBytes32String(name);
}

export function isAddress(address) {
    return WAValidator.validate(address, 'ETH');
}